﻿@model Guan.CMS.Web.ViewModels.SystemVersionViewModel
@{
    ViewBag.Title = "版本信息";
}
<div class="section-header">
    <div class="title">
        <img src="@Url.Content("~/Content/Images/Admin/ico-system.png")" alt="" />
        @ViewBag.Title
    </div>
    <div class="options"></div>
</div>
<div class="section-body">
    <table class="main">
        <tr>
            <th>@Html.LabelFor(m => m.Version):</th>
            <td>@Html.DisplayFor(m => m.Version)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.OperatingSystem):</th>
            <td>@Html.DisplayFor(m => m.OperatingSystem)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.AspNetInfo):</th>
            <td>@Html.DisplayFor(m => m.AspNetInfo)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.IsFullTrust):</th>
            <td>@Html.DisplayFor(m => m.IsFullTrust)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.ServerTimeZone):</th>
            <td>@Html.DisplayFor(m => m.ServerTimeZone)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m =>m.ServerLocalTime):</th>
            <td>@Html.DisplayFor(m => m.ServerLocalTime)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m =>m.UtcTime):</th>
            <td>@Html.DisplayFor(m => m.UtcTime)</td>
        </tr>
        <tr>
            <th>@Html.LabelFor(m => m.LoadedAssemblies):</th>
            <td>
                <a href="javascript:void(0);" id="btnAssembly">显示</a>
                <div id="assembliesList" style="display: none;">
                    @foreach (var a in Model.LoadedAssemblies)
                    {
                        @a.FullName <br />
                    }
                </div>
            </td>
        </tr>
    </table>
</div>
@section Scripts
{
    <script type="text/javascript">
        $(function() {
            $("#btnAssembly").click(function() {
                if ($(this).html() == "显示") {
                    $("#assembliesList").show();
                    $(this).html("隐藏");
                } else {
                    $("#assembliesList").hide();
                    $(this).html("显示");
                }
            });
        });
    </script>
}
